package com.ideaaedi.zoo.example.springboot.flowable.sharding.controller.helper.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ideaaedi.zoo.example.springboot.flowable.sharding.controller.helper.entity.enums.LeaveApprovalState;
import com.ideaaedi.zoo.example.springboot.flowable.sharding.controller.helper.entity.enums.LeaveType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 请假申请表 po模型
 * </p>
 *
 * @author Administrator
 * @since 1.0.0
 */
@Data
@TableName("demo_leave_info")
@Schema(description = "请假申请表")
public class DemoLeaveInfoPO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "概要")
    @TableField("summary")
    private String summary;

    @Schema(description = "请假类型")
    @TableField("type")
    private LeaveType type;

    @Schema(description = "请假开始时间")
    @TableField("leave_from")
    private LocalDateTime leaveFrom;

    @Schema(description = "请假结束时间")
    @TableField("leave_to")
    private LocalDateTime leaveTo;

    @Schema(description = "审批状态")
    @TableField("approval_state")
    private LeaveApprovalState approvalState;

}